-- GENERATED SPELL FOR [Molten Colossus] --


function spell0_34069(pUnit, Event) --@Earthquake,Self--
pUnit:FullCastSpellOnTarget(64697,pUnit)
pUnit:RegisterEvent('Sorts_34069', 4309, 1)
end

function spell1_34069(pUnit, Event) --@Pyroblast,n/a--
pUnit:FullCastSpellOnTarget(64698,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34069', 12000, 1)
end

function spell2_34069(pUnit, Event) --@Unquenchable Flames,n/a--
pUnit:FullCastSpellOnTarget(64705,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34069', 5000, 1)
end

function Sorts_34069(pUnit, Event)
local choix_sorts_34069 = math.random(0, 2)
if choix_sorts_34069 == 0 then
pUnit:RegisterEvent('spell0_34069', 1, 1)
end
if choix_sorts_34069 == 1 then
pUnit:RegisterEvent('spell1_34069', 1, 1)
end
if choix_sorts_34069 == 2 then
pUnit:RegisterEvent('spell2_34069', 1, 1)
end
end

function mob34069_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34069', math.random(1500, 3000), 1)
end

function mob34069_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34069_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34069_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34069, 1, 'mob34069_Action')
RegisterUnitEvent(34069, 2, 'mob34069_Leave')
RegisterUnitEvent(34069, 3, 'mob34069_Kill')
RegisterUnitEvent(34069, 4, 'mob34069_Die')
